import request from '@/utils/request'

export function getExamPage(query) {
  return request({
    url: '/cms/exam/list',
    method: 'get',
    params: query
  })
}


export function addExam(obj) {
  return request({
    url: '/cms/exam',
    method: 'post',
    data: obj
  })
}

export function getExam(id) {
  return request({
    url: '/cms/exam/' + id,
    method: 'get'
  })
}

export function delExam(id) {
  return request({
    url: '/cms/exam/' + id,
    method: 'delete'
  })
}

export function putExam(obj) {
  return request({
    url: '/cms/exam',
    method: 'put',
    data: obj
  })
}

export function getRecordList(id,params) {
  return request({
    url: '/cms/exam/getReviewList/'+id,
    method: 'get',
    params
  })
}


export function setExamPanIds(obj) {
  return request({
    url: '/cms/exam/saveExaminees',
    method: 'post',
    data: obj
  })
}
export function getExamPanIds(id) {
  return request({
    url: '/cms/exam/getExaminees/'+id,
    method: 'get',
  })
}